package com.easygo.mapper;

import com.xuexi.easygo.pojo.Specification;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface SpecificationMapper {

    //模糊查询，查询条数
    Integer getTotalConunt(Map<String,Object> map);
    //模糊查询分页
    List<Specification> getSpecificationPage(Map<String,Object> map);
    //新增
    Integer addSpecification(Specification specification);

    //修改页面的回显
    Specification getSpecificationById(Integer id);

    Integer updateSpecificationById(Specification specification);
}
